package com.zzh.bc.model;

/**
 * 键值对映射
 */
public class KeyTypeModel {
    private String key;//column name 列表名称
    private String fieldName;//属性字段名称

    public KeyTypeModel(String key, String fieldName) {
        this.key = key;
        this.fieldName = fieldName;
    }

    public String getFieldName() {
        return fieldName == null ? "" : fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getKey() {
        return key == null ? "" : key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return key;
    }
}
